package com.leyou.item.pojo;


import lombok.*;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.List;

/**
 * @author:yanjizhw@163.com
 * @date:2019-09-23 14:35
 * 描述:
 * @since:1.0.0
 */
@Data
@Table(name = "tb_category")
public class Category {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private String name;
    private Long parentId;
    private Boolean isParent;
    private String level;
    private Integer sort;
    private List<Category>  children;

    private String state;

}
